package org.worthydots.access.jpa.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Train implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String number;
	private String name;

	public Train() {
		
	}
	
	public Train(String number, String name) {
		super();
		this.number = number;
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String toString() {
		return number + " " + name;
	}
}
